def split2dict(string, split_char=',', split_dict='='):
    """

    :param string: str string of needed split
    :param split_char: str char of split string
    :param split_dict: str split string of key and value
    :return:
    """
    if not split_char:
        print 'please input string'
        return
    if not split_char:
        print 'please input split char'
        return

    return {i.split(split_dict)[0]: i.split(split_dict)[1] for i in string.split(split_char)}



if __name__ == '__main__':
    s = 'host.kernel_version=6.2,host.qube_class=,host.processor_speed=3067,host.processor_model=,' \
        'host.worker_mode=desktop,host.architecture=,host.qube_version=6.8-3,host.processor_make=GenuineIntel,' \
        'host.cores=12,host.ram=96,host.os=winnt,host.cpus=1,host.qube_build=bld-custom,host.proxy_mode=interactive,' \
        'host.system_class=render'
    print split2dict(s, ',', '=')